<?php
$bookingItem = new BWInputValue($bookingId);
$cartTable = new BWCart();
$bookingRow = new BTreeList($bookingItem);
$cartRow = $cartTable->getListById($cartId);

$venderName = $bookingRow->getItem('venderName')->value;
$courtDisplayName = $bookingRow->getItem('courtDisplayName')->value;
$courtAddress = $bookingRow->getItem('courtAddress')->value;
$courtName = $bookingRow->getItem('courtName')->value;
$startTime = $bookingRow->getItem('startTime')->value;
$endTime = $bookingRow->getItem('endTime')->value;
$paidTime = $bookingRow->getItem('paidTime')->value;
$price = $cartRow->getItem('price')->value;
$quantity = $cartRow->getItem('quantity')->value;
?>
<div class="modal-body" >
    <legend> 
        订单信息
    </legend>


    <div class="form" style="padding-left: 30px">    
        <p><strong>订单号：</strong><span class="text-warning"><?php echo $bookingId; ?></span></p>
        <p><strong>场地名称：</strong><span class="text-warning"><?php echo $courtDisplayName; ?></span></p>
        <p><strong>地点：</strong><span class="text-warning"><?php echo $courtAddress; ?></span></p>
        <p><strong>开始时间：</strong><span class="text-warning"><?php echo date('Y.m.d-G:i:s', $startTime); ?></span></p>
        <p><strong>结束时间：</strong><span class="text-warning"><?php echo date('Y.m.d-G:i:s', $endTime); ?></span></p>
        <p><strong>价格：</strong><span class="text-primary"><?php echo $price; ?>元</span></p>
        <!--<p><strong>数量：</strong><span class="text-primary"><?php echo $quantity; ?></span></p>-->
    </div>
</div>
<div class = "modal-footer">
    <button data-dismiss = 'modal' aria-hidden = 'true'>关闭</button>       
</div>
